import B from './compB.js'

export default {
    data() {
        return {
            todoList: ['luoki', 'kenny', 'white', 'ben']
        }
    },
    provide() {
        return {
            curTodoList: Vue.computed(() => this.todoList)
        }
    },
    components: {
        'component-b': B
    },

    methods:{
        clickMe(){
            this.todoList.push('abc');
        }
    },
    template: `
        moduleA:
        <button @click="this.clickMe">clickMe</button>
        <component-b></component-b>
    `
}